package com.paul.web.action;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

import com.opensymphony.xwork2.Action;
import com.paul.common.entity.User;
import com.paul.service.UserService;

@Controller
public class FindUserAction {

	@Autowired
	private UserService userService;

	private Long id;

	private User user;

	public String execute() {

		user = userService.selectById(id);

		return Action.SUCCESS;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

}
